package homework;

/**
 * @ClassName homework10
 * @Description TODO
 * @Author 黑白灰色雨
 * @Date 2024/8/28 14:37
 * @Version 1.0
 */
public class myStringTest {
    public static void main(String[] args) {
        String s1="hello java";
        String s2="hello java";
        if(s1.equals(s2)){
            String s11=s1.replace(" ","");
            System.out.println(s11);
            String s111=s11.replace("java","word");
            System.out.println(s111);
        }else {
            System.out.println("不相等");
        }
    }
}
